loadMemory expects data to be decoded. This process is not instant on Web. A decision was made of putting successful and unsuccessful callbacks for that reason. Prefer using the onError callback rather than the bool return.
loadRaw assumes that you already have the raw pixels to be put on CPU, so, there's no error checking.